#write in 2019,6,6
# write by 李卓颖

from flask import Flask

from flask_restful import reqparse, Api, Resource

app = Flask(__name__)
api = Api(app)


class LogView(Resource):
    def post(self):
        parser = reqparse.RequestParser()
        parser.add_argument('username', type=str, help="请输入用户名")
        args = parser.parse_args()
        print(args)
        return args


@app.route('/')
def hello():
    return 'hello'


if __name__ == '__main__':
    app.run(debug=True)
